/*
 * 网络通信的服务端程序
*/
#include<iostream>
#include"EchoServer.h"

using namespace std;

int main(int argc,char *argv[])
{
    if (argc != 2) 
    { 
        cout << "useage: ./tcpepoll port" << endl;
        cout << "exmaple: ./tcpepoll 5085" << endl;
        return -1; 
    }

    EchoServer echoServer("127.0.0.1", atoi(argv[1]));
    // 开启事件循环
    echoServer.Start();

    return 0;
}